def render_dict(self,items,title=None,attributes={},title_type=None,render_key_content=None,
                render_value_content=None):

    def render_items(items):
        output = []
        for key,value in items.iteritems():
            output.append(self.render_dict_key(key,render_content=render_key_content))
            if isinstance(value,(list,tuple)):
                for item in value:
                    output.append(self.render_dict_value(item,render_content=render_value_content))
            else:
                output.append(self.render_dict_value(value,render_content=render_value_content))
        return u''.join(output)

    if items:
        return self.render_block(content=self.render_tag('dl',render_items(items)),title=title,
                                 title_type=title_type,attributes=attributes)
    return u''

def render_dict_key(self,content=None,attributes={},render_content=None):
    return self.render_tag('dt',content,attributes,render_content)

def render_dict_value(self,content=None,attributes={},render_content=None):
    return self.render_tag('dd',content,attributes,render_content)

